<!-- 头部 -->
<template>
  <div class="commonality_title">
    <div class="chart_triangle">
      <img src="@/assets/newBigdata/ic-sh.png" alt="" class="chart-img" />
      <transition name="bounce">
        <img src="@/assets/newBigdata/ic-wb.png" alt="" class="chatr-item" />
      </transition>
    </div>
    <div class="chart_title">{{ title }}</div>
  </div>
</template>

<script>
export default {
  name: "my-header",
  props: {
    title: { type: String, default: "商户和供货商总数量" },
  },
};
</script>

<style lang="scss" scoped>
.commonality_title {
  width: 27.3125rem;
  //   height: 0.479167rem;
  background-image: linear-gradient(0deg, to right, #070f63, #070f63);
  display: flex;
  align-items: center;
  flex-direction: row;
  box-sizing: border-box;
  margin-top: 0.625rem;
  position: relative;
}
.chart_title {
  display: flex;
  align-items: center;
  flex-direction: row;
  position: absolute;
  top: 20%;
  box-sizing: border-box;
  margin-left: 2.5rem;
  font-size: 1.125rem;
  font-family: PingFang SC;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(0deg, #00e4ff 0%, #e6faff 79.2236328125%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.chart_triangle {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  display: flex;
}
.chart-img {
  width: 27.3125rem;
}
.chatr-item {
  position: absolute;
  left: 22.9375rem;
  bottom: 0.5rem;
  animation: bounce 1s infinite;
}
@keyframes bounce {
  0% {
    top: 0;
  }
  50% {
    top: -5px;
  }
  100% {
    top: 0;
  }
}

.bounce-enter-active {
  animation: bounce 1s infinite;
}

.bounce-leave-active {
  animation: none;
}
</style>